<?php
/**
 * Created by PhpStorm.
 * User: pantosoft
 * Date: 17/7/31
 * Time: 下午2:18
 */

namespace App\Repositories;

use App\Models\V1\InfoNotice;


class NoticeRepository
{
    /***
     * 创建Answer
     * @param array $attributes
     */
    public function create(array $attributes) {
        $notice =  InfoNotice::create($attributes);
        return $notice;
    }

    public function byId($id) {
        return InfoNotice::find($id);
    }
}